Repository navigation
test: full ModelInfo in the Compare attempts run-blocker fixture (tsc errors) - #20
Open
marceloceccon wants to merge 2 commits into
Open
marceloceccon wants to merge 2 commits into
marceloceccon wants to merge 2 commits into
Conversation
…jects tsc --noEmit reported 8 errors in tests/compare-store-and-blocker.test.ts (participants and availableModels used partial ModelInfo). CI does not type-check test files (vitest does not, and next build skips them), so it slipped through #19. Type-only fix; assertions unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
tests/compare-store-and-blocker.test.ts(added in #19) passed partialModelInfoobjects ({ id }only) in the run-blocker fixture.tsc --noEmitreported 8 type errors there. The fixture now uses a fullModelInfo. This is a type-only change: the assertions are unchanged.Why
This was a defect in #19. CI doesn't type-check test files: vitest doesn't type-check, and
next buildonly checks the app. So it wasn't caught. Noticed while verifyingmainagainst entropyvortex/ai-consensus-core#7.How it was verified
tsc --noEmit -p tsconfig.jsonreports 0 errors (was 8), andpnpm lint,pnpm format:checkandpnpm test(622/622) pass [executed].What is left
pnpm install --frozen-lockfile, likemaindoes now.package.jsonneedsai-consensus-core@^0.13.0, which isn't published yet; after the release, refresh the lockfile onmain.typecheckscript (tsc --noEmit) to CI so test files are type-checked.